<link type="text/css" rel="stylesheet" href="{url:#css/ucenter.css}" />
{echo:JS::import('form');}
{echo:JS::import('date');}
<div class="container clearfix">
	{widget:name=sub_navs action=ucsidebar sidebar=$sidebar act=$actionId}
	<div class="uc-content clearfix">
		<h1 class="title"><span>提现：</span></h1>
		{if:isset($msg)}
		<div class="message_{$msg[0]} ie6png">{$msg[1]}</div>
		{elseif:isset($validator)}
		<div class="message_warning ie6png">{$validator['msg']}</div>
		{/if}
		<div class="mt10 tab">
			<ul class="tab-head">
				<li>申请提现<i></i></li>
				<li>申请记录<i></i></li>
			</ul>
			<div class="tab-body">

				<div>
					<form id="info-form" class="simple" action="{url:/ucenter/withdraw_save}" method="post">
						<input type="hidden" name="lx" value="1">
						<table class="form">
							{query:name=user as u,customer as c fields=u.* ,c.* where= u.id eq $user[id]  and  u.id eq c.user_id order=id desc page=1 id=$obj}
							<tr>
								<td class="label">用户名：</td><td>
								<input type="text" pattern="required" name="uname" id="uname" value="{$item['name']}"  readonly alt="用户名不能为空">
							</td>
							</tr>
							<tr>
								<td class="label">真实姓名：</td>
								<td><input type="text" id="w_name" name="real_name" readonly  pattern="required" placeholder="开户对应的用户名" alt="开户对应的用户名" value="{$item['real_name']}"> <label></label>
								</td>
							</tr>
							<tr>
								<td class="label">开户银行地址：</td>
								<td><input type="text" id="w_type_name" name="type_name" readonly value="{$item['bank']}"  pattern="required" placeholder="如（中国银行某某支行）" alt="如（中国银行某某支行）"> <label></label></td>
							</tr>
							<tr>
								<td class="label">银行账号：</td>
								<td><input type="text" id="w_account" name="account" readonly value="{$item['bank_kh']}"  pattern="required" placeholder="如（支付宝账号、银行账号）" alt="如（支付宝账号、银行账号）"> <label></label></td>
							</tr>

							<tr>
								<td class="label">奖金分：</td>
								<td>
									<input type="text" name="wallet_xjf" id="wallet" value="{$item['jjf']}"  readonly >
									<!--<select pattern="required" name="agent" id="proxy_type" alt="请选择类别" style="width:210px;">-->
									<!--<option value="1">现金分 余额:{$item['xjf']}</option>-->
									<!---->
									<!--</select>-->
								</td>
							</tr>

							<tr>
								<td class="label">提现金额：</td><td><input  pattern="float" min="0.01"  alt="最少0.01" type="text" pattern="required" name="wallet" > <label></label></td>
							</tr>
							<tr>
								<td class="label">交易密码：</td><td><input placeholder='6-20位字母数字组合' type="password" pattern="required" name="passwordtwo" id="passwordtwo" bind="repassword" minlen="6" maxlen="20" value="" alt="密码长度6-20个字符"> <label></label></td>
							</tr>
							<tr>
								<td colspan="2" class="tc"><input type="submit" class="btn value="提现"></td>
							</tr>

							{/query}
						</table>
						{token:}
					</form>
				</div>

				<div>
					<table class="simple">
						{query:name=withdraw where= user_id eq $user[id] page=1 id=$obj }
						{set:$status =$item['status']}
						{/query}
						<tr>
							<th>真实姓名</th><th>开户银行</th><th>银行账号</th>
							 <th >提现金额</th><th> 手续费</th><th> 实际到账</th>
							<th >当前状态</th>

						</tr>
						{query:name=withdraw where= user_id eq $user[id] page=1 id=$obj}
						<tr {if:$key%2==1}class="even"{/if}>
							<td>{$item['name']}</td>
							<td>{$item['type_name']}</td>
							<td>{$item['account']}</td>
							<td>
								{$item['sq_money']}
							</td>
							<td>
								{$item['txf']}
							</td>
							<td>
								{$item['amount']}
							</td>

							{if: $item['status'] == 0}
							<td style="color:cornflowerblue">
								待审核
							</td>
							{elseif:$item['status'] ==1}
							<td style="color:#16987c">
								通过
							</td>
							{elseif:$item['status'] ==2}
							<td style="color:red">
								拒绝
							</td>
							{else:}
							<td style="color:#54ff24">
								未知状态
							</td>
							{/if}
						</tr>
						{/query}
					</table>
					<div class="page-nav">{echo:$obj->pagebar()}</div>
				</div>
			</div>
		</div>
	</div>
</div>

